<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="https://unpkg.com/element-plus/dist/index.css">
    <script src="https://unpkg.com/vue@3"></script>
    <script src="https://unpkg.com/element-plus"></script>
</head>

<body>
    <div id="app">
        <el-row>
            <el-col :span="12">
                <el-button type="primary" @click="isShow=!isShow">切换显示状态</el-button>
                <div v-show="isShow">
                    <img src="https://5b0988e595225.cdn.sohucs.com/images/20191116/c536bed0efdf4778a5dc40f3465ca8d5.jpeg">
                </div>
                
            </el-col>
            <el-col :span="12">
                <el-button type="primary" @click="age++">增加年龄</el-button>
                <el-button type="primary" @click="age--">减少年龄</el-button>
                <p>年龄满足18岁，可以入党。目前年纪：{{age}}</p>
                <img v-show="age>=18" src="https://5b0988e595225.cdn.sohucs.com/images/20180701/577c95ff35c84588b07d3cde88064866.jpeg">
            </el-col>
        </el-row>
    </div>
</body>
<script>
    const App = {
        data() {
            return {
                isShow: false,
                age: 18,
            }
        },
        methods: {}
    }
    Vue.createApp(App).use(ElementPlus).mount("#app")
</script>

</html>